<div data-role="page">

  <div data-role="header" data-position="inline">
    <h1>Edit <%= @question.id %></h1>
    <a href="<%= url_for :action => :show, :id => @question.object %>" class="ui-btn-left" data-icon="back" data-direction="reverse">
      Cancel
    </a>
    <a href="<%= url_for :action => :delete, :id => @question.object %>" class="ui-btn-right" data-icon="delete" data-direction="reverse">
      Delete
    </a>
  </div>

  <div data-role="content">
    <form method="POST" action="<%= url_for :action => :update %>">
      <input type="hidden" name="id" value="<%= @question.object %>"/>
      
          <div data-role="fieldcontain">
            <label for="question[id]" class="fieldLabel">Id</label>
            <input type="text" id="question[id]" name="question[id]" value="<%= @question.id %>" <%= placeholder( "Id" ) %> />
          </div>
      
          <div data-role="fieldcontain">
            <label for="question[title]" class="fieldLabel">Title</label>
            <input type="text" id="question[title]" name="question[title]" value="<%= @question.title %>" <%= placeholder( "Title" ) %> />
          </div>
      
          <div data-role="fieldcontain">
            <label for="question[status]" class="fieldLabel">Status</label>
            <input type="text" id="question[status]" name="question[status]" value="<%= @question.status %>" <%= placeholder( "Status" ) %> />
          </div>
      
          <div data-role="fieldcontain">
            <label for="question[student_id]" class="fieldLabel">Student</label>
            <input type="text" id="question[student_id]" name="question[student_id]" value="<%= @question.student_id %>" <%= placeholder( "Student" ) %> />
          </div>
      
          <div data-role="fieldcontain">
            <label for="question[grade_id]" class="fieldLabel">Grade</label>
            <input type="text" id="question[grade_id]" name="question[grade_id]" value="<%= @question.grade_id %>" <%= placeholder( "Grade" ) %> />
          </div>
      
          <div data-role="fieldcontain">
            <label for="question[subject_id]" class="fieldLabel">Subject</label>
            <input type="text" id="question[subject_id]" name="question[subject_id]" value="<%= @question.subject_id %>" <%= placeholder( "Subject" ) %> />
          </div>
      
      <input type="submit" value="Update"/>
    </form>
  </div>

</div>
